package com.tjetc.service;

import com.tjetc.domain.Admin;
import com.tjetc.utils.PageInfo;

import java.util.List;

public interface AdminService {
    Admin login(String username, String password,int rid);

    int getCount(String username,String phone);

    List<Admin> list(String username,String phone,PageInfo<Admin> pageInfo);

    boolean add(Admin admin);

    boolean update(Admin admin);

    boolean updateStatus(int status,int id);

    Admin getById(int id);

    Admin getpwdById(int id);

    boolean updatepwd(Admin admin);

    Admin findByName(String username);
}
